package com.ijuit.common.kit;

import com.jfinal.kit.EncryptionKit;
/**
 * 
 * 字符串加密工具类
 * 
 * 继承与jfinal的EncryptionKit类
 * 
 * @author 罗龙
 *
 */
public class EncryptKit extends EncryptionKit {
	
	private static final String KEY = "IJUIT_KEY";
	
	/**
	 * iJuit MD5加密
	 * @param srcStr
	 * @return
	 */
	public static String encrypt(String srcStr){
		srcStr = KEY+srcStr;
		return md5Encrypt(srcStr);
	}
	
	
	
	public static void main(String[] args) {
		System.out.println(encrypt("IJUIT"));//9943e6edc3d67f0e292af9f670e4e2f9
		System.out.println(encrypt("中国"));//dc00e9a918711691222a7175a1ec9506
	}
}
